package com.yohann.designPattern.state;

/**
 * <p>
 * 奖品领完状态
 * </p>
 *
 * @author Yohann
 * @since 2021/2/13 17:34
 */
public class DispenseOut implements State {
    private RaffleActivity activity;

    public DispenseOut(RaffleActivity activity) {
        this.activity = activity;
    }

    @Override
    public void deductMoney() {
        System.out.println("奖品已领完");
    }

    @Override
    public boolean raffle() {
        System.out.println("奖品已领完");
        return false;
    }

    @Override
    public void dispensePrize() {
        System.out.println("奖品已领完");
    }
}